import cn.hutool.core.io.resource.ResourceUtil;

public class ResourceTest {
    public static void main(String[] args) {
        System.out.println("测试从 resources 读取文件...");
        
        try {
            String content = ResourceUtil.readUtf8Str("20800900-方案179-DHF-1762739817729-20250605080000.txt");
            System.out.println("✅ 成功从 resources 读取到文件！");
            System.out.println("文件内容长度: " + content.length() + " 字符");
            System.out.println("文件前100个字符: " + content.substring(0, Math.min(100, content.length())));
        } catch (Exception e) {
            System.err.println("❌ 读取失败: " + e.getMessage());
            e.printStackTrace();
        }
    }
}

